import store from '@/store';

// 检验按钮权限
const checkBtnPermission = btnPermission => {
  let allBtnPermission = store.state.buttons;
  let boolean = allBtnPermission.includes(btnPermission);
  return boolean;
};

export default checkBtnPermission;
